<?php
// 获取登录信息
include '../init.php';

$behavior = $_GET['behavior'];

// 恢复删除的帖子
if ($behavior == 'recycled'){
    $pid = $_GET['pid'];
    $sql = "UPDATE `post_tb` SET isDel=0 WHERE pid={$pid};";
    if (!my_mysql_query($sql,$pid)){
        show_msg(1,'恢复失败',3,'index.php?action='.$_GET['action']);
        exit();
    }
    show_msg(0,'恢复成功',1,'index.php?action='.$_GET['action']);
    exit();
}